package com.linwen.javase.desgin_pattern.action.strategy;

/**
 * @ClassName Context
 * @Description
 * @Author lin
 * @Date 2022/6/30 上午12:06
 * @Version V1.0
 */
//环境类
class Context {
    private Strategy strategy;
    public Strategy getStrategy() {
        return strategy;
    }
    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
    public void strategyMethod() {
        strategy.strategyMethod();
    }
}
